export default {
    fullScreen(){
        let elem: HTMLElement = document.documentElement;
        // 进入全屏模式
        if (elem.requestFullscreen) {
            elem.requestFullscreen();
        } else if ((<any>elem).webkitRequestFullscreen) { // Safari
            (<any>elem).webkitRequestFullscreen();
        } else if ((<any>elem).msRequestFullscreen) { // IE
            (<any>elem).msRequestFullscreen();
        }
    },
    fullScreenExit(){
        let elem: HTMLElement = document.documentElement;
        if (document.exitFullscreen) {
            document.exitFullscreen();
          } else if ((<any>document).webkitExitFullscreen) {
            (<any>document).webkitExitFullscreen();
          } else if ((<any>document).msExitFullscreen) {
            (<any>document).msExitFullscreen();
          }
    }
}